package scsc.web.xzgl.saniannounce.data;

import java.io.Serializable;

import scsc.pub.data.SanitationAnnounce;

public class SaniAnnounceData extends SanitationAnnounce implements
		Serializable {

	/**
	 * Program by cb 2006/03/23
	 */
	private static final long serialVersionUID = 1L;

	public SaniAnnounceData() {
		init();
	}

	public SaniAnnounceData(Integer announceId, String announceTitle,
			String announceContent, String createDate, String publish,
			String userId, String latestDate, String remark) {
		setAnnounceId(announceId);
		setAnnounceTitle(announceTitle.trim());
		setAnnounceContent(announceContent.trim());
		setCreateDate(createDate.trim().substring(0, 10));
		setPublish(publish.trim());
		setUserId(userId.trim());
		setLatestDate(latestDate.trim().substring(0, 10));
		setRemark(remark.trim());

	}

	public void reset() {
		init();
	}

	public void init() {
		setAnnounceId(null);
		setAnnounceTitle("");
		setAnnounceContent("");
		setCreateDate("");
		setPublish("0");
		setUserId("");
		setLatestDate("");
		setRemark("");
	}

}
